.class Lcom/estrongs/android/pop/view/FileExplorerActivity$s;
.super Ljava/lang/Object;
.source "FileExplorerActivity.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/pop/view/FileExplorerActivity;->m(Ljava/lang/String;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/fs/impl/usb/f;

.field final synthetic b:Ljava/lang/String;

.field final synthetic c:Lcom/estrongs/android/pop/view/FileExplorerActivity;


# direct methods
.method constructor <init>(Lcom/estrongs/android/pop/view/FileExplorerActivity;Lcom/estrongs/fs/impl/usb/f;Ljava/lang/String;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$s;->c:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    iput-object p2, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$s;->a:Lcom/estrongs/fs/impl/usb/f;

    iput-object p3, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$s;->b:Ljava/lang/String;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 4

    .line 1
    iget-object p2, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$s;->a:Lcom/estrongs/fs/impl/usb/f;

    if-eqz p2, :cond_2

    .line 2
    iget-object p2, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$s;->c:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-virtual {p2}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->d0()Lcom/estrongs/android/pop/app/leftnavigation/h0;

    move-result-object p2

    if-eqz p2, :cond_0

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$s;->b:Ljava/lang/String;

    invoke-virtual {p2, v0}, Lcom/estrongs/android/pop/app/leftnavigation/h0;->b(Ljava/lang/String;)V

    .line 4
    :cond_0
    iget-object p2, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$s;->a:Lcom/estrongs/fs/impl/usb/f;

    invoke-virtual {p2}, Lcom/estrongs/fs/impl/usb/f;->i()V

    .line 5
    iget-object p2, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$s;->a:Lcom/estrongs/fs/impl/usb/f;

    invoke-virtual {p2}, Lcom/estrongs/fs/impl/usb/f;->a()V

    .line 6
    iget-object p2, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$s;->c:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    iget-object p2, p2, Lcom/estrongs/android/pop/view/FileExplorerActivity;->D:Ljava/util/List;

    const/4 v0, 0x0

    .line 7
    :goto_0
    invoke-interface {p2}, Ljava/util/List;->size()I

    move-result v1

    if-ge v0, v1, :cond_3

    .line 8
    invoke-interface {p2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/estrongs/android/view/FileGridViewWrapper;

    if-eqz v1, :cond_1

    .line 9
    invoke-virtual {v1}, Lcom/estrongs/android/view/FileGridViewWrapper;->Y()Ljava/lang/String;

    move-result-object v2

    if-eqz v2, :cond_1

    .line 10
    invoke-virtual {v1}, Lcom/estrongs/android/view/FileGridViewWrapper;->Y()Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$s;->b:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 11
    iget-object p2, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$s;->c:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-virtual {p2, v1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->b(Lcom/estrongs/android/view/FileGridViewWrapper;)V

    goto :goto_1

    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 12
    :cond_2
    iget-object p2, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$s;->b:Ljava/lang/String;

    invoke-static {p2}, Lcom/estrongs/android/util/h0;->w2(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_3

    .line 13
    new-instance p2, Landroid/content/Intent;

    const-string v0, "android.settings.INTERNAL_STORAGE_SETTINGS"

    invoke-direct {p2, v0}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const/high16 v0, 0x10000000

    .line 14
    invoke-virtual {p2, v0}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 15
    iget-object v0, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$s;->c:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-virtual {v0, p2}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->startActivity(Landroid/content/Intent;)V

    .line 16
    :cond_3
    :goto_1
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    return-void
.end method
